package com.shop.zkmall.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户进入直播间记录表
 * </p>
 *
 * @author ${author}
 * @since 2025-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cere_live_join_record")
@ApiModel(value="CereLiveJoinRecord对象", description="用户进入直播间记录表")
public class CereLiveJoinRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "观众用户ID")
    private Long userId;

    @ApiModelProperty(value = "直播间ID")
    private Long liveId;

    @ApiModelProperty(value = "进入直播间时间")
    private LocalDateTime enterTime;

    @ApiModelProperty(value = "离开直播间时间（退出时更新）")
    private LocalDateTime leaveTime;

    @ApiModelProperty(value = "状态 1进入 2退出")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
